<?php 
use Yii\helpers\Html;
use yii\bootstrap\Nav;


//菜单
$menuItem = [];
if ($access = Yii::$app->params['access']) {
    isset($access['USER']['INDEX']) && $menuItem[] = ['label' => '用户管理', 'url' => ['/user/index']];
    //isset($access['USER']['LOGINLOG']) && $menuItem[] = ['label' => '登录日志', 'url' => ['/user/loginlog']];
} else {
    $menuItem = [
        ['label' => '用户管理', 'url' => ['/user/index']],
       // ['label' => '登录日志', 'url' => ['/user/loginlog']],
    ];
}


echo Nav::widget([
    'options' => ['class' => 'nav nav-tabs mbm'],
    'items' => $menuItem,
]);

?>
          